#include <stdio.h>

int main() {
    int hh, mm;
    scanf("%d:%d", &hh, &mm);

    if (hh < 12 || (hh == 12 && mm == 0)) {
        printf("Only %02d:%02d.  Too early to Dang.\n", hh, mm);
    } else {
        int hour = hh;
        if (mm > 0) {
            hour += 1;
        }
        int d = hour - 12;
        if (d == 0) d = 12; 
        for (int i = 0; i < d; i++) {
            printf("Dang");
        }
        printf("\n");
    }

    return 0;
}
